package com.charley.icloud.admin.webapps.sysdept.pojo.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * Model层：展示对象
 *
 * @author charley
 * @date 2024-04-24 09:54
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Schema(name = "SysDeptVO", title = "机构VO")
public class SysDeptVO {

    @Schema(title = "机构ID")
    private Long id;

    @Schema(title = "机构名称")
    private String name;

    @Schema(title = "上级机构")
    private String parentName;

    @Schema(title = "机构层级")
    private Integer level;

    @Schema(title = "下级机构")
    private List<SysDeptVO> children;

}
